<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/admin/assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/admin/assets/css/comment.css">
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">
            评论管理
        </div>
        <div class="layui-card-body">
            <table class="layui-table">
                <!-- 规定列宽 -->
                <colgroup>
                    <col width="6%">
                    <col width="18%">
                    <col width="30%">
                    <col width="22%">
                    <col width="22%">
                </colgroup>
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>评论人</th>
                        <th>评论内容</th>
                        <th>评论时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>

                </tbody>
            </table>
        </div>
    </div>


    <script type="text/html" id="tpl-list">
        {{each data val}}
        <tr>
            <td>{{val.id}}</td>
            <td>{{val.uname}}</td>
            <td>{{val.content}}</td>
            <td>{{val.cdate|timer}}</td>
            <td>
               
                <button data-id="{{val.id}}" type="button" class="layui-btn layui-btn-xs layui-btn-danger">删除</button>
            </td>
        </tr>
        {{/each}}
    </script>


    <script src="/admin/assets/lib/jquery.js"></script>
    <script src="/admin/assets/lib/template-web.js"></script>
    <script src="/admin/assets/lib/layui/layui.all.js"></script>
    <script src="/admin/assets/js/common.js"></script>
    <script src="/admin/assets/js/comment.js"></script>
</body>

</html>